<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<%@ include file="/commons/head.jsp" %>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <%@ include file="/commons/left.jsp" %>
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                日志列表
            </h1>
            <section class="content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box">
                            <div class="box-header">
                                <form  name="searchForm" id="searchForm"
                                      action="${ctx}/logs/listLogs" method="get">
                                    <input type="hidden" id="pageNum" name="pageNum" value="1" />
                                    <input type="hidden" id="length" name="length" value="10" />
                                </form>
                            </div>
                            <div class="box-body">
                                <table id="example2" class="table table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th width="60px">用户名</th>
                                        <th>用户操作</th>
                                        <th>请求方法</th>
                                        <th>请求参数</th>
                                        <th width="100px">ip地址</th>
                                        <th class="time" width="100px"  >执行时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <c:if test="${page.maxRow > 0}">
                                        <c:forEach var="item" items="${listLogs}" varStatus="vs">
                                            <tr>
                                                <td>${item.userName}</td>
                                                <td>${item.operation}</td>
                                                <td>${item.mothod}</td>
                                                <td>${item.params}</td>
                                                <td>${item.ip}</td>
                                                <td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.createTime}"></fmt:formatDate></td>
                                            </tr>
                                        </c:forEach>
                                    </c:if>
                                    </tbody>
                                </table>
                                <div>
                                    <jsp:include page="/commons/pagination.jsp"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </section>

    </div>
    <%@ include file="/commons/script.jsp" %>
</body>
</html>



